<ul>
	<li class="header">Users Management</li>
	<li><a href="user_list.php"><span>Manage Users</span></a></li>
	<li><a href="user_add.php"><span>Add User</span></a></li>
	<li><a href="#"><span>User Types</span></a></li>
	<li><a href="users_email.php"><span>Contact Users</span></a></li>

	<li class="header">Recent Actions</li>
	<li><a href="logins_list.php"><span>Logins</span></a></li>
	<li><a href="downloads_list.php"><span>Downloads</span></a></li>
	
	
	<li class="header">Site Settings</li>
	<li><a href="user_registration_settings.php"><span>User Registration Settings</span></a></li>
	
	
<li class="header">Inactive Users</li>
	
	<?php
	
	//******************  Users Select Query  ***************
$query_users_menu = "SELECT * FROM  users, users_teams WHERE users.user_id = users_teams.user_id AND users_teams.team_id='$z_current_team_id' AND user_team_active = 'false'  ORDER BY user_name LIMIT 4 OFFSET 0";
$result_users_menu = pg_query($connection, $query_users_menu) or die("Error in query: $query_users_menu.". pg_last_error($connection));
$rows_users_menu = pg_num_rows($result_users_menu);
//********************************************************

for ($row = 0; $row < pg_numrows($result_users_menu); $row++)
			{
$arr_menu = pg_fetch_array($result_users_menu, $row, PGSQL_ASSOC); 
$in_user_id_menu 		= $arr_menu['user_id'];
$in_user_name_menu 		= $arr_menu['user_name'];
		
		$edit_link = "<a href ='user_edit.php?id=".$in_user_id_menu ."'><span>$in_user_name_menu </span></a>";	
		echo "<li>$edit_link</li>";
			}
			?>
    	<li><a href="user_list.php"><span><i>All Users</i></span></a></li>
															
</ul>